Extend the predict_fn in the init_model to support multiple output columns#394
Merged
AnilSorathiya merged 22 commits intomainfrom Jul 23, 2025
Conversation
…gentic-model-in-vm-library
…-in-the-init-model-to
juanmleng
reviewed
Jul 22, 2025
cachafla
approved these changes
Jul 23, 2025
Contributor
cachafla
left a comment
There was a problem hiding this comment.
Looks good 🙌. I suggest testing traditional notebooks (quickstart model doc, quickstart regression, etc.) to ensure the existing code continues to work without issues.
juanmleng
approved these changes
Jul 23, 2025
Contributor
juanmleng
left a comment
There was a problem hiding this comment.
lgtm! One of those key notebooks to test is the credit scorecard application_scorecard_full_suite.ipynb
Contributor
PR SummaryThis PR introduces several key enhancements and refactors across the project:
Overall, these changes enhance the robustness, clarity, and flexibility of both the LLM agent routing demos and the dataset prediction functionality without altering core business logic. Test Suggestions
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
This change to extend the
predict_fncallable function parameter in the init_model to support multiple output columns :prediction.What and why?
Currently,
predict_fnfunctional call supports output store in a single column asprediction. However, intermediate outputs from function call can't be store for the traceability purpose.This PR implements the following:
prediction.This could allow us to include intermediate outputs from LangGraph/workflows while invoking assign_predictions. These additional columns could be stored in the VM dataset object for enhanced traceability and analysis for LLM use cases or further analysis.
How to test
run notebooks:
What needs special review?
Dependencies, breaking changes, and deployment notes
Release notes
Checklist